home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 8
/
Amoszine 8 (Disk 2 of 3).adf
/
AMON_Extension.lha
/
amon_extension
/
examples_asc
/
FastAngle_Arrows.asc
< prev
next >
Wrap
Text File
|
1995-07-24
|
907b
|
50 lines
'
'Program: Lock an array of arrows onto the mouse pointer.
' Author: Paul Overy.
' Date: 19/7/1995
'
Proc _SET_UP
'
'
Break Off : NUL=Execall(-132)
'
Repeat
'
Sprite 0,X Hard(Rodent X),Y Hard(Rodent Y),1
'
For X=0 To 304 Step 32
For Y=0 To 192 Step 64
FRAME=Fast Angle(X,Y,3)
Put Block FRAME,X,Y
Next Y
Next X
'
Beam Wait Y Hard(208) : Screen Swap
Until Rodent Key or Keycode
'
NUL=Execall(-138) : Break On
'
Procedure _SET_UP
'
Screen Open 0,320,64,4,Lowres : Hide
Cls 0 : Draw 8,1 To 8,15 : Draw 1,8 To 15,8
Get Sprite 1,0,0 To 16,16
'
Load Iff Dir$+"Arrows72.iff",0
'
Screen Display 0,128,42,,
'
N=1
For Y=0 To 48 Step 16
For X=0 To 304 Step 16
Get Block N,X,Y,16,15,0
Inc N
Next X
Next Y
'
Cls 0 : Double Buffer : Autoback 0
Limit Rodent 0,0 To 304,200
'
End Proc